<form method="post" action="<?php _actionUrl($this)?>" onsubmit="return ajax_form(this,true)">
<div class="x-list-title"> 
<table height="100%" width="100%" border="0" cellpadding="0">
<tr><td>
<h2>Tìm kiếm cơ hội</h2>
</td></tr></table>
</div>
<div class="x-form-container">
<table width="100%" border="0" cellpadding="0" class="x-form">
<tr>
	<td width="150" class="x-form-label x-form-label-special">
		Từ khóa tìm kiếm: 
	</td>
	<td class="x-form-input">
		<input type="text" name="s" class="x-text x-normal-text" value=""/>
	</td>
</tr>

<tr>
	<td class="x-form-label">
		Mã: 
	</td>
	<td class="x-form-input">
		<input type="text" name="code" class="x-text x-small-text" value=""/>
	</td>
</tr>

<tr>
	<td class="x-form-label">
		Tên cơ hội: 
	</td>
	<td class="x-form-input">
		<input type="text" name="title" class="x-text x-normal-text" value=""/>
	</td>
</tr>

<tr>
	<td class="x-form-label">Bắt đầu sau: </td>
	<td class="x-form-input">
		<input type="text" name="date_start" value="<?php _e(show_date('d/m/Y',$post['date_start']));?>" onclick="date_picker(this,{format: 'd/m/Y' })" class="x-text x-date"/>
	</td>
</tr>

<tr>
	<td class="x-form-label">Kết thúc trước: </td>
	<td class="x-form-input">
		<input type="text" name="date_end" value="<?php _e(show_date('d/m/Y',$post['date_end']));?>" onclick="date_picker(this,{format: 'd/m/Y' })" class="x-text x-date"/>
	</td>
</tr>		
			
<tr>
	<td class="x-form-label">
		Giai đoạn bán hàng: 
	</td>
	<td class="x-form-input">
		<?php _e( tpl_search_select('parent_id[]','ID','title',$this->get('cats')) );?>
	</td>
</tr>

<tr>
	<td></td>
	<td>
		<?php echo tpl_button_add('Tìm kiếm');?>
		<?php echo tpl_button_back('Quay lại danh sách cơ hội','#Crm/Opportunity');?>				
	</td>
</tr>
</table></div>
</form>